//@athour Reenu



public class Laptop 
{
	boolean isStarted = false;
	
	
     void  start()
    {
       	isStarted=true;
       	System.out.println("Welcome!");
    }
    
     
     void switchUser(String usernamefromdemo)
     
     {    	
    	 String user="";
    	 String username= usernamefromdemo.toLowerCase();    	 
    	 
     
    	   switch(username)
    	   {
    	      
    	    	 case "reenu":
    	    	   {
    	    		   user="Reenu";
    	    		   System.out.println("Reenu is logged in");
    	    		   break;
    	    	   }
    	    	 case "navdeep":
    	    	   {
    	    		   user="Navdeep";
    	    		   System.out.println("Navdeep is logged in");
    	    		   break;
    	    	   }
    	    	 case "saanvi":	 
    	    	   {
    	    		   user="Saanvi";
    	    		   System.out.println("Saanvi is logged in");
    	    		   break;
    	    	   }
    	         default:
    	        	{
    	        	    user="";
    	        	    System.out.println("No such User");
    	        	    System.out.println("Select user to log in");
    	        	    break;
    	        	}
    	       		 
    	     }
    	   //end of switch
    	   
    
    	  
     }	
     // end of method switchuser
     
     void openFile(String fileName)
     {
    	 boolean fileIsOpen = false;
    	 if(fileName.isEmpty())
    	 {
    		 fileIsOpen= false;
    		 System.out.println("Mention the file to be opened");    		 
    		 
    	 }
    	 else 
    	 {
    	  fileIsOpen=true;
    	   System.out.println(fileName + " is now open");
    	 }
	   }
     void printPage(String pagename,boolean printerdriverinstalled,boolean printerconnected)
     {
    	 
    	 boolean print=false;
    	 if((printerdriverinstalled==true) && (printerconnected==true))
    	 {
    		 print=true;
    		 System.out.println(pagename + " is printing.");
    	 }
    	 else
    	 {
    		 print=false;
    		 System.out.println("Printerproblem");
    	 }
    	 
     }
     
     
     void shutDown( boolean shutyes)
     {
    	 if(shutyes==true)
    	 {
    	  isStarted=false;
    	  System.out.println("System is shutting down");
    	 }
    	 else
    	 {
    		 isStarted=true;
    	 }
    	
     }
     

}
